<?php
/**
 * 车辆维保接口请求参数验证器
 * 发仔<i@fazi.me> 2018-07-09
 */
namespace app\open\validate;

use app\base\validate\BaseValidate;
class CarMaintenanceValidate extends BaseValidate
{
    //验证
    protected $rule = [
        'id' =>  'require|integer',
        'car_id' =>  'require|integer',
        'service_id' =>  'require|integer',
//        'sender' =>  'require',
//        'checker' =>  'require',
//        'price' =>  'require',
    ];

    // 默认值
    protected $default = [
    ];

    protected $message = [
    ];

    protected $scene = [
        'add' => [
            'car_id','service_id'
        ],
        'edit' => [
            'id', 'car_id','service_id'
        ],
    ];

}